package com.teamall.web.tssy.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class TsSyResourceArg {
    private String pk_name = "ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<TsSyResourceCriteria> oredCriteria;

    public TsSyResourceArg() {
        oredCriteria = new ArrayList<TsSyResourceCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<TsSyResourceCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(TsSyResourceCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public TsSyResourceCriteria or() {
    	TsSyResourceCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public TsSyResourceCriteria createCriteria() {
    	TsSyResourceCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected TsSyResourceCriteria createCriteriaInternal() {
    	TsSyResourceCriteria criteria = new TsSyResourceCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<TsSyResourceCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<TsSyResourceCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<TsSyResourceCriterion> getAllCriteria() {
            return criteria;
        }

        public List<TsSyResourceCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new TsSyResourceCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyResourceCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyResourceCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyResourceCriterion(condition, value1, value2));
        }

        public TsSyResourceCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andIdIsNull() {
            addCriterion("ID is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdLessThan(String value) {
            addCriterion("ID <", value, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdLike(String value) {
            addCriterion("ID like ", value, "ID", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdNotLike(String value) {
            addCriterion("ID  not like ", value, "ID", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdLeftLike(String value) {
            addCriterion("ID like ", value, "ID", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdNotLeftLike(String value) {
            addCriterion("ID  not like ", value, "ID", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdRightLike(String value) {
            addCriterion("ID like ", value, "ID", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdNotRightLike(String value) {
            addCriterion("ID  not like ", value, "ID", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdIn(List<String> values) {
            addCriterion("ID  in ", values, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdNotIn(List<String> values) {
            addCriterion("ID not in ", values, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdBetween(String value1, String value2) {
            addCriterion("ID between ", value1, value2, "ID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between ", value1, value2, "ID");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andResourceNameIsNull() {
            addCriterion("RESOURCE_NAME is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameIsNotNull() {
            addCriterion("RESOURCE_NAME is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameEqualTo(String value) {
            addCriterion("RESOURCE_NAME =", value, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameNotEqualTo(String value) {
            addCriterion("RESOURCE_NAME <>", value, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameGreaterThan(String value) {
            addCriterion("RESOURCE_NAME >", value, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameGreaterThanOrEqualTo(String value) {
            addCriterion("RESOURCE_NAME >=", value, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameLessThan(String value) {
            addCriterion("RESOURCE_NAME <", value, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameLessThanOrEqualTo(String value) {
            addCriterion("RESOURCE_NAME <=", value, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameLike(String value) {
            addCriterion("RESOURCE_NAME like ", value, "RESOURCE_NAME", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameNotLike(String value) {
            addCriterion("RESOURCE_NAME  not like ", value, "RESOURCE_NAME", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameLeftLike(String value) {
            addCriterion("RESOURCE_NAME like ", value, "RESOURCE_NAME", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameNotLeftLike(String value) {
            addCriterion("RESOURCE_NAME  not like ", value, "RESOURCE_NAME", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameRightLike(String value) {
            addCriterion("RESOURCE_NAME like ", value, "RESOURCE_NAME", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameNotRightLike(String value) {
            addCriterion("RESOURCE_NAME  not like ", value, "RESOURCE_NAME", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameIn(List<String> values) {
            addCriterion("RESOURCE_NAME  in ", values, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameNotIn(List<String> values) {
            addCriterion("RESOURCE_NAME not in ", values, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameBetween(String value1, String value2) {
            addCriterion("RESOURCE_NAME between ", value1, value2, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceNameNotBetween(String value1, String value2) {
            addCriterion("RESOURCE_NAME not between ", value1, value2, "RESOURCE_NAME");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkLike(String value) {
            addCriterion("REMARK like ", value, "REMARK", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkNotLike(String value) {
            addCriterion("REMARK  not like ", value, "REMARK", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkLeftLike(String value) {
            addCriterion("REMARK like ", value, "REMARK", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkNotLeftLike(String value) {
            addCriterion("REMARK  not like ", value, "REMARK", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkRightLike(String value) {
            addCriterion("REMARK like ", value, "REMARK", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkNotRightLike(String value) {
            addCriterion("REMARK  not like ", value, "REMARK", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkIn(List<String> values) {
            addCriterion("REMARK  in ", values, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in ", values, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between ", value1, value2, "REMARK");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between ", value1, value2, "REMARK");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andPidIsNull() {
            addCriterion("PID is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidIsNotNull() {
            addCriterion("PID is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidEqualTo(String value) {
            addCriterion("PID =", value, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidNotEqualTo(String value) {
            addCriterion("PID <>", value, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidGreaterThan(String value) {
            addCriterion("PID >", value, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidGreaterThanOrEqualTo(String value) {
            addCriterion("PID >=", value, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidLessThan(String value) {
            addCriterion("PID <", value, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidLessThanOrEqualTo(String value) {
            addCriterion("PID <=", value, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidLike(String value) {
            addCriterion("PID like ", value, "PID", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidNotLike(String value) {
            addCriterion("PID  not like ", value, "PID", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidLeftLike(String value) {
            addCriterion("PID like ", value, "PID", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidNotLeftLike(String value) {
            addCriterion("PID  not like ", value, "PID", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidRightLike(String value) {
            addCriterion("PID like ", value, "PID", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidNotRightLike(String value) {
            addCriterion("PID  not like ", value, "PID", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidIn(List<String> values) {
            addCriterion("PID  in ", values, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidNotIn(List<String> values) {
            addCriterion("PID not in ", values, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidBetween(String value1, String value2) {
            addCriterion("PID between ", value1, value2, "PID");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andPidNotBetween(String value1, String value2) {
            addCriterion("PID not between ", value1, value2, "PID");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andUrlIsNull() {
            addCriterion("URL is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlIsNotNull() {
            addCriterion("URL is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlEqualTo(String value) {
            addCriterion("URL =", value, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlNotEqualTo(String value) {
            addCriterion("URL <>", value, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlGreaterThan(String value) {
            addCriterion("URL >", value, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlGreaterThanOrEqualTo(String value) {
            addCriterion("URL >=", value, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlLessThan(String value) {
            addCriterion("URL <", value, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlLessThanOrEqualTo(String value) {
            addCriterion("URL <=", value, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlLike(String value) {
            addCriterion("URL like ", value, "URL", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlNotLike(String value) {
            addCriterion("URL  not like ", value, "URL", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlLeftLike(String value) {
            addCriterion("URL like ", value, "URL", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlNotLeftLike(String value) {
            addCriterion("URL  not like ", value, "URL", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlRightLike(String value) {
            addCriterion("URL like ", value, "URL", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlNotRightLike(String value) {
            addCriterion("URL  not like ", value, "URL", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlIn(List<String> values) {
            addCriterion("URL  in ", values, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlNotIn(List<String> values) {
            addCriterion("URL not in ", values, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlBetween(String value1, String value2) {
            addCriterion("URL between ", value1, value2, "URL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUrlNotBetween(String value1, String value2) {
            addCriterion("URL not between ", value1, value2, "URL");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andIsExtendIsNull() {
            addCriterion("IS_EXTEND is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendIsNotNull() {
            addCriterion("IS_EXTEND is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendEqualTo(String value) {
            addCriterion("IS_EXTEND =", value, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendNotEqualTo(String value) {
            addCriterion("IS_EXTEND <>", value, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendGreaterThan(String value) {
            addCriterion("IS_EXTEND >", value, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendGreaterThanOrEqualTo(String value) {
            addCriterion("IS_EXTEND >=", value, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendLessThan(String value) {
            addCriterion("IS_EXTEND <", value, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendLessThanOrEqualTo(String value) {
            addCriterion("IS_EXTEND <=", value, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendLike(String value) {
            addCriterion("IS_EXTEND like ", value, "IS_EXTEND", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendNotLike(String value) {
            addCriterion("IS_EXTEND  not like ", value, "IS_EXTEND", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendLeftLike(String value) {
            addCriterion("IS_EXTEND like ", value, "IS_EXTEND", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendNotLeftLike(String value) {
            addCriterion("IS_EXTEND  not like ", value, "IS_EXTEND", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendRightLike(String value) {
            addCriterion("IS_EXTEND like ", value, "IS_EXTEND", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendNotRightLike(String value) {
            addCriterion("IS_EXTEND  not like ", value, "IS_EXTEND", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendIn(List<String> values) {
            addCriterion("IS_EXTEND  in ", values, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendNotIn(List<String> values) {
            addCriterion("IS_EXTEND not in ", values, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendBetween(String value1, String value2) {
            addCriterion("IS_EXTEND between ", value1, value2, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsExtendNotBetween(String value1, String value2) {
            addCriterion("IS_EXTEND not between ", value1, value2, "IS_EXTEND");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andRelIsNull() {
            addCriterion("REL is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelIsNotNull() {
            addCriterion("REL is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelEqualTo(String value) {
            addCriterion("REL =", value, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelNotEqualTo(String value) {
            addCriterion("REL <>", value, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelGreaterThan(String value) {
            addCriterion("REL >", value, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelGreaterThanOrEqualTo(String value) {
            addCriterion("REL >=", value, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelLessThan(String value) {
            addCriterion("REL <", value, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelLessThanOrEqualTo(String value) {
            addCriterion("REL <=", value, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelLike(String value) {
            addCriterion("REL like ", value, "REL", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelNotLike(String value) {
            addCriterion("REL  not like ", value, "REL", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelLeftLike(String value) {
            addCriterion("REL like ", value, "REL", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelNotLeftLike(String value) {
            addCriterion("REL  not like ", value, "REL", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelRightLike(String value) {
            addCriterion("REL like ", value, "REL", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelNotRightLike(String value) {
            addCriterion("REL  not like ", value, "REL", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelIn(List<String> values) {
            addCriterion("REL  in ", values, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelNotIn(List<String> values) {
            addCriterion("REL not in ", values, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelBetween(String value1, String value2) {
            addCriterion("REL between ", value1, value2, "REL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andRelNotBetween(String value1, String value2) {
            addCriterion("REL not between ", value1, value2, "REL");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andIsDelIsNull() {
            addCriterion("IS_DEL is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelIsNotNull() {
            addCriterion("IS_DEL is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelEqualTo(String value) {
            addCriterion("IS_DEL =", value, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelNotEqualTo(String value) {
            addCriterion("IS_DEL <>", value, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelGreaterThan(String value) {
            addCriterion("IS_DEL >", value, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelGreaterThanOrEqualTo(String value) {
            addCriterion("IS_DEL >=", value, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelLessThan(String value) {
            addCriterion("IS_DEL <", value, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelLessThanOrEqualTo(String value) {
            addCriterion("IS_DEL <=", value, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelNotLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelLeftLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelNotLeftLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelRightLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelNotRightLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelIn(List<String> values) {
            addCriterion("IS_DEL  in ", values, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelNotIn(List<String> values) {
            addCriterion("IS_DEL not in ", values, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelBetween(String value1, String value2) {
            addCriterion("IS_DEL between ", value1, value2, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andIsDelNotBetween(String value1, String value2) {
            addCriterion("IS_DEL not between ", value1, value2, "IS_DEL");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateEqualTo(Date value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateNotEqualTo(Date value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateGreaterThan(Date value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateLessThan(Date value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateNotLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateLeftLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateNotLeftLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateRightLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateNotRightLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateIn(List<Date> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateNotIn(List<Date> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andCreateByIsNull() {
            addCriterion("CREATE_BY is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByIsNotNull() {
            addCriterion("CREATE_BY is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByEqualTo(String value) {
            addCriterion("CREATE_BY =", value, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByNotEqualTo(String value) {
            addCriterion("CREATE_BY <>", value, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByGreaterThan(String value) {
            addCriterion("CREATE_BY >", value, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_BY >=", value, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByLessThan(String value) {
            addCriterion("CREATE_BY <", value, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("CREATE_BY <=", value, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByNotLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByLeftLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByNotLeftLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByRightLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByNotRightLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByIn(List<String> values) {
            addCriterion("CREATE_BY  in ", values, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByNotIn(List<String> values) {
            addCriterion("CREATE_BY not in ", values, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByBetween(String value1, String value2) {
            addCriterion("CREATE_BY between ", value1, value2, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("CREATE_BY not between ", value1, value2, "CREATE_BY");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andUpdateByIsNull() {
            addCriterion("UPDATE_BY is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByIsNotNull() {
            addCriterion("UPDATE_BY is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByEqualTo(String value) {
            addCriterion("UPDATE_BY =", value, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByNotEqualTo(String value) {
            addCriterion("UPDATE_BY <>", value, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByGreaterThan(String value) {
            addCriterion("UPDATE_BY >", value, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY >=", value, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByLessThan(String value) {
            addCriterion("UPDATE_BY <", value, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY <=", value, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByLike(String value) {
            addCriterion("UPDATE_BY like ", value, "UPDATE_BY", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByNotLike(String value) {
            addCriterion("UPDATE_BY  not like ", value, "UPDATE_BY", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByLeftLike(String value) {
            addCriterion("UPDATE_BY like ", value, "UPDATE_BY", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByNotLeftLike(String value) {
            addCriterion("UPDATE_BY  not like ", value, "UPDATE_BY", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByRightLike(String value) {
            addCriterion("UPDATE_BY like ", value, "UPDATE_BY", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByNotRightLike(String value) {
            addCriterion("UPDATE_BY  not like ", value, "UPDATE_BY", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByIn(List<String> values) {
            addCriterion("UPDATE_BY  in ", values, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByNotIn(List<String> values) {
            addCriterion("UPDATE_BY not in ", values, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByBetween(String value1, String value2) {
            addCriterion("UPDATE_BY between ", value1, value2, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("UPDATE_BY not between ", value1, value2, "UPDATE_BY");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UPDATE_TIME =", value, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UPDATE_TIME <>", value, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UPDATE_TIME >", value, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME >=", value, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeLessThan(Date value) {
            addCriterion("UPDATE_TIME <", value, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME <=", value, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeLike(Date value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeNotLike(Date value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeLeftLike(Date value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeNotLeftLike(Date value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeRightLike(Date value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeNotRightLike(Date value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UPDATE_TIME  in ", values, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UPDATE_TIME not in ", values, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME between ", value1, value2, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME not between ", value1, value2, "UPDATE_TIME");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andCodeIsNull() {
            addCriterion("code is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeEqualTo(String value) {
            addCriterion("code =", value, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeNotEqualTo(String value) {
            addCriterion("code <>", value, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeGreaterThan(String value) {
            addCriterion("code >", value, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("code >=", value, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeLessThan(String value) {
            addCriterion("code <", value, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("code <=", value, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeLike(String value) {
            addCriterion("code like ", value, "code", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeNotLike(String value) {
            addCriterion("code  not like ", value, "code", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeLeftLike(String value) {
            addCriterion("code like ", value, "code", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeNotLeftLike(String value) {
            addCriterion("code  not like ", value, "code", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeRightLike(String value) {
            addCriterion("code like ", value, "code", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeNotRightLike(String value) {
            addCriterion("code  not like ", value, "code", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeIn(List<String> values) {
            addCriterion("code  in ", values, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeNotIn(List<String> values) {
            addCriterion("code not in ", values, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeBetween(String value1, String value2) {
            addCriterion("code between ", value1, value2, "code");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andCodeNotBetween(String value1, String value2) {
            addCriterion("code not between ", value1, value2, "code");
            return (TsSyResourceCriteria) this;
        }
        public TsSyResourceCriteria andResourceTypeIsNull() {
            addCriterion("resource_type is null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeIsNotNull() {
            addCriterion("resource_type is not null");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeEqualTo(String value) {
            addCriterion("resource_type =", value, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeNotEqualTo(String value) {
            addCriterion("resource_type <>", value, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeGreaterThan(String value) {
            addCriterion("resource_type >", value, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeGreaterThanOrEqualTo(String value) {
            addCriterion("resource_type >=", value, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeLessThan(String value) {
            addCriterion("resource_type <", value, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeLessThanOrEqualTo(String value) {
            addCriterion("resource_type <=", value, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeLike(String value) {
            addCriterion("resource_type like ", value, "resource_type", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeNotLike(String value) {
            addCriterion("resource_type  not like ", value, "resource_type", 1);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeLeftLike(String value) {
            addCriterion("resource_type like ", value, "resource_type", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeNotLeftLike(String value) {
            addCriterion("resource_type  not like ", value, "resource_type", 0);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeRightLike(String value) {
            addCriterion("resource_type like ", value, "resource_type", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeNotRightLike(String value) {
            addCriterion("resource_type  not like ", value, "resource_type", 2);
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeIn(List<String> values) {
            addCriterion("resource_type  in ", values, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeNotIn(List<String> values) {
            addCriterion("resource_type not in ", values, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeBetween(String value1, String value2) {
            addCriterion("resource_type between ", value1, value2, "resource_type");
            return (TsSyResourceCriteria) this;
        }

        public TsSyResourceCriteria andResourceTypeNotBetween(String value1, String value2) {
            addCriterion("resource_type not between ", value1, value2, "resource_type");
            return (TsSyResourceCriteria) this;
        }

    }

    public static class TsSyResourceCriteria extends GeneratedCriteria {

        protected TsSyResourceCriteria() {
            super();
        }
    }

    public static class TsSyResourceCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected TsSyResourceCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected TsSyResourceCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected TsSyResourceCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected TsSyResourceCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected TsSyResourceCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected TsSyResourceCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}